package com.shasselclub.project.ask.question.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shasselclub.framework.aspectj.lang.annotation.Excel;
import com.shasselclub.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 问卷管理对象 t_question
 * 
 * @author zhengyunfei
 * @date 2022-08-02
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    /** 问卷标题 */
    @Excel(name = "问卷标题")
    private String title;

    /** 问卷说明 */
    @Excel(name = "问卷说明")
    private String content;

    /** 是否有效;1:有效；0：无效 */
    @Excel(name = "是否有效;1:有效；0：无效")
    private Long status;

    /** 分享标题 */
    @Excel(name = "分享标题")
    private String shareTitle;

    /** 分享内容 */
    @Excel(name = "分享内容")
    private String shareContent;

    /** 分享缩略图 */
    @Excel(name = "分享缩略图")
    private String sharePic;

    /** 背景音乐 */
    @Excel(name = "背景音乐")
    private String music;

    /** 删除标志;0:未删除 1：已删除 */
    private Long deleteFlg;
    /** 好友助力得分 */
    @Excel(name = "好友助力得分")
    private Long zhuliScore;
    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;
    /** 微信公众号的appid */
    @Excel(name = "微信公众号的appid")
    private String appId;

    /** 微信公众号的appSecret */
    @Excel(name = "微信公众号的appSecret")
    private String appSecret;
    @Excel(name = "最大可以答题次数，0：不限制")
    private int maxDaTiNum;

    public int getMaxDaTiNum() {
        return maxDaTiNum;
    }

    public void setMaxDaTiNum(int maxDaTiNum) {
        this.maxDaTiNum = maxDaTiNum;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getZhuliScore() {
        return zhuliScore;
    }

    public void setZhuliScore(Long zhuliScore) {
        this.zhuliScore = zhuliScore;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setShareTitle(String shareTitle)
    {
        this.shareTitle = shareTitle;
    }

    public String getShareTitle()
    {
        return shareTitle;
    }
    public void setShareContent(String shareContent)
    {
        this.shareContent = shareContent;
    }

    public String getShareContent()
    {
        return shareContent;
    }
    public void setSharePic(String sharePic)
    {
        this.sharePic = sharePic;
    }

    public String getSharePic()
    {
        return sharePic;
    }
    public void setMusic(String music)
    {
        this.music = music;
    }

    public String getMusic()
    {
        return music;
    }
    public void setDeleteFlg(Long deleteFlg)
    {
        this.deleteFlg = deleteFlg;
    }

    public Long getDeleteFlg()
    {
        return deleteFlg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("status", getStatus())
            .append("shareTitle", getShareTitle())
            .append("shareContent", getShareContent())
            .append("sharePic", getSharePic())
            .append("music", getMusic())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleteFlg", getDeleteFlg())
            .append("remark", getRemark())
            .toString();
    }
}
